[INFO] cloning repository https://github.com/k0sti/llm-tutorial
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/k0sti/llm-tutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk0sti%2Fllm-tutorial", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk0sti%2Fllm-tutorial'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ab138563c82a77e534b4f9613e8fbcca80519499
[INFO] fixing k0sti/llm-tutorial against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk0sti%2Fllm-tutorial" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/k0sti/llm-tutorial
[INFO] finished tweaking git repo https://github.com/k0sti/llm-tutorial
[INFO] tweaked toml for git repo https://github.com/k0sti/llm-tutorial written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/k0sti/llm-tutorial on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/k0sti/llm-tutorial already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 4f268323a60ebddfe71f3451363185d96b6a2fe3355a1988a423258cb90a07a2
[INFO] running `Command { std: "docker" "start" "4f268323a60ebddfe71f3451363185d96b6a2fe3355a1988a423258cb90a07a2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4f268323a60ebddfe71f3451363185d96b6a2fe3355a1988a423258cb90a07a2" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4f268323a60ebddfe71f3451363185d96b6a2fe3355a1988a423258cb90a07a2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4f268323a60ebddfe71f3451363185d96b6a2fe3355a1988a423258cb90a07a2" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating crates/llm/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/demo/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Compiling proc-macro2 v1.0.101
[INFO] [stderr]    Compiling libc v0.2.177
[INFO] [stderr]    Compiling unicode-ident v1.0.19
[INFO] [stderr]    Compiling quote v1.0.41
[INFO] [stderr]    Compiling zerocopy v0.8.27
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling matrixmultiply v0.3.10
[INFO] [stderr]     Checking memchr v2.7.6
[INFO] [stderr]     Checking anstyle-query v1.1.4
[INFO] [stderr]     Checking anstream v0.6.21
[INFO] [stderr]     Checking clap_builder v4.5.50
[INFO] [stderr]     Checking serde_json v1.0.145
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking num-complex v0.4.6
[INFO] [stderr]    Compiling syn v2.0.107
[INFO] [stderr]     Checking ndarray v0.16.1
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking rand_distr v0.4.3
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling clap_derive v4.5.49
[INFO] [stderr]     Checking ndarray-rand v0.15.0
[INFO] [stderr]     Checking clap v4.5.50
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]     Checking llm v0.1.0 (/opt/rustwide/workdir/crates/llm)
[INFO] [stderr]    Migrating crates/llm/src/lib.rs from 2021 edition to 2024
[INFO] [stderr]     Checking demo v0.1.0 (/opt/rustwide/workdir/crates/demo)
[INFO] [stderr]    Migrating crates/demo/src/main.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/llm/tests/test_data.rs from 2021 edition to 2024
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> crates/demo/src/main.rs:102:30
[INFO] [stdout]     |
[INFO] [stdout] 102 |         if let Some(state) = &DEMO_STATE {
[INFO] [stdout]     |                              ^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 102 |         if let Some(state) = &raw const DEMO_STATE {
[INFO] [stdout]     |                               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> crates/demo/src/main.rs:112:30
[INFO] [stdout]     |
[INFO] [stdout] 112 |         if let Some(state) = &DEMO_STATE {
[INFO] [stdout]     |                              ^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 112 |         if let Some(state) = &raw const DEMO_STATE {
[INFO] [stdout]     |                               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> crates/demo/src/main.rs:121:9
[INFO] [stdout]     |
[INFO] [stdout] 121 |         DEMO_STATE.as_ref().map(|s| s.non_interactive).unwrap_or(false)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Migrating crates/llm/tests/test_model.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/llm/tests/test_checkpoint.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/llm/tests/test_generation.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/llm/tests/test_attention.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/llm/tests/test_layers.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/llm/src/main.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/llm/tests/test_tokenizer.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/llm/tests/test_training.rs from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/llm/tests/test_optimizer.rs from 2021 edition to 2024
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> crates/demo/src/main.rs:102:30
[INFO] [stdout]     |
[INFO] [stdout] 102 |         if let Some(state) = &DEMO_STATE {
[INFO] [stdout]     |                              ^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 102 |         if let Some(state) = &raw const DEMO_STATE {
[INFO] [stdout]     |                               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.81s
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> crates/demo/src/main.rs:112:30
[INFO] [stdout]     |
[INFO] [stdout] 112 |         if let Some(state) = &DEMO_STATE {
[INFO] [stdout]     |                              ^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 112 |         if let Some(state) = &raw const DEMO_STATE {
[INFO] [stdout]     |                               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> crates/demo/src/main.rs:121:9
[INFO] [stdout]     |
[INFO] [stdout] 121 |         DEMO_STATE.as_ref().map(|s| s.non_interactive).unwrap_or(false)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] crater-edition-check: llm v0.1.0 (/opt/rustwide/workdir/crates/llm) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: demo v0.1.0 (/opt/rustwide/workdir/crates/demo) updating edition from 2021 to 2024
[INFO] [stderr]     Checking llm v0.1.0 (/opt/rustwide/workdir/crates/llm)
[INFO] [stderr]     Checking demo v0.1.0 (/opt/rustwide/workdir/crates/demo)
[INFO] [stdout] warning: function `create_test_model` is never used
[INFO] [stdout]  --> crates/llm/tests/common/mod.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn create_test_model() -> TransformerLM {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_test_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn create_test_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_minimal_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn create_minimal_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_sample_text` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn create_sample_text() -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_test_model` is never used
[INFO] [stdout]  --> crates/llm/tests/common/mod.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn create_test_model() -> TransformerLM {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_test_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn create_test_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_minimal_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn create_minimal_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `assert_approx_eq` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub fn assert_approx_eq(a: f32, b: f32, epsilon: f32) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_sample_text` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn create_sample_text() -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `loaded_tokenizer`
[INFO] [stdout]   --> crates/llm/tests/test_checkpoint.rs:97:24
[INFO] [stdout]    |
[INFO] [stdout] 97 |     let (loaded_model, loaded_tokenizer) = load_checkpoint(&path).unwrap();
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loaded_tokenizer`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_minimal_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn create_minimal_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `assert_approx_eq` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub fn assert_approx_eq(a: f32, b: f32, epsilon: f32) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_sample_text` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn create_sample_text() -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `original`
[INFO] [stdout]    --> crates/llm/tests/test_optimizer.rs:133:9
[INFO] [stdout]     |
[INFO] [stdout] 133 |     let original = weights.clone();
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `llm_tutorial::layers::softmax`
[INFO] [stdout]   --> crates/llm/tests/test_training.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use llm_tutorial::layers::softmax;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_test_model` is never used
[INFO] [stdout]  --> crates/llm/tests/common/mod.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn create_test_model() -> TransformerLM {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_test_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn create_test_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_minimal_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn create_minimal_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_sample_text` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn create_sample_text() -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_minimal_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn create_minimal_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `assert_approx_eq` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub fn assert_approx_eq(a: f32, b: f32, epsilon: f32) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_sample_text` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn create_sample_text() -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_test_model` is never used
[INFO] [stdout]  --> crates/llm/tests/common/mod.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn create_test_model() -> TransformerLM {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_test_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn create_test_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_minimal_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn create_minimal_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `assert_approx_eq` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub fn assert_approx_eq(a: f32, b: f32, epsilon: f32) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_sample_text` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn create_sample_text() -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_test_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn create_test_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_minimal_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn create_minimal_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_sample_text` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn create_sample_text() -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> crates/llm/tests/test_model.rs:146:9
[INFO] [stdout]     |
[INFO] [stdout] 146 |     let mut logits = Array1::from_vec(vec![1.0, 1.0, 1.0, 1.0]);
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> crates/llm/tests/test_model.rs:155:9
[INFO] [stdout]     |
[INFO] [stdout] 155 |     let mut logits = Array1::from_vec(vec![0.0, 0.0, 10.0, 0.0]);
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_test_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn create_test_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_minimal_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn create_minimal_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `assert_approx_eq` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub fn assert_approx_eq(a: f32, b: f32, epsilon: f32) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_sample_text` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn create_sample_text() -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `targets`
[INFO] [stdout]    --> crates/llm/tests/test_data.rs:198:18
[INFO] [stdout]     |
[INFO] [stdout] 198 |     let (inputs, targets) = batch.unwrap();
[INFO] [stdout]     |                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_targets`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_test_model` is never used
[INFO] [stdout]  --> crates/llm/tests/common/mod.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn create_test_model() -> TransformerLM {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_test_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:21:8
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn create_test_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_minimal_tokenizer` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:27:8
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub fn create_minimal_tokenizer() -> CharTokenizer {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `assert_approx_eq` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub fn assert_approx_eq(a: f32, b: f32, epsilon: f32) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_sample_text` is never used
[INFO] [stdout]   --> crates/llm/tests/common/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn create_sample_text() -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> crates/demo/src/main.rs:102:30
[INFO] [stdout]     |
[INFO] [stdout] 102 |         if let Some(state) = &DEMO_STATE {
[INFO] [stdout]     |                              ^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 102 |         if let Some(state) = &raw const DEMO_STATE {
[INFO] [stdout]     |                               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> crates/demo/src/main.rs:112:30
[INFO] [stdout]     |
[INFO] [stdout] 112 |         if let Some(state) = &DEMO_STATE {
[INFO] [stdout]     |                              ^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 112 |         if let Some(state) = &raw const DEMO_STATE {
[INFO] [stdout]     |                               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> crates/demo/src/main.rs:121:9
[INFO] [stdout]     |
[INFO] [stdout] 121 |         DEMO_STATE.as_ref().map(|s| s.non_interactive).unwrap_or(false)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `demo` (bin "demo") due to 3 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> crates/demo/src/main.rs:102:30
[INFO] [stdout]     |
[INFO] [stdout] 102 |         if let Some(state) = &DEMO_STATE {
[INFO] [stdout]     |                              ^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 102 |         if let Some(state) = &raw const DEMO_STATE {
[INFO] [stdout]     |                               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> crates/demo/src/main.rs:112:30
[INFO] [stdout]     |
[INFO] [stdout] 112 |         if let Some(state) = &DEMO_STATE {
[INFO] [stdout]     |                              ^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 112 |         if let Some(state) = &raw const DEMO_STATE {
[INFO] [stdout]     |                               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> crates/demo/src/main.rs:121:9
[INFO] [stdout]     |
[INFO] [stdout] 121 |         DEMO_STATE.as_ref().map(|s| s.non_interactive).unwrap_or(false)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `demo` (bin "demo" test) due to 3 previous errors
[INFO] running `Command { std: "docker" "inspect" "4f268323a60ebddfe71f3451363185d96b6a2fe3355a1988a423258cb90a07a2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4f268323a60ebddfe71f3451363185d96b6a2fe3355a1988a423258cb90a07a2", kill_on_drop: false }`
[INFO] [stdout] 4f268323a60ebddfe71f3451363185d96b6a2fe3355a1988a423258cb90a07a2
